package org.liveboardgames.agricola.control.delegates.action.prerequisite
{
    import org.liveboardgames.agricola.control.delegates.helper.GameHelper;
    import org.liveboardgames.agricola.vo.player.Player;
    
    public class StablePrerequisiteChecker extends PrerequisiteChecker
    {
        public function StablePrerequisiteChecker(player:Player)
        {
            super(player);
        }
        
        override public function check():Boolean
        {
            var result:Boolean = true;
            
            var remainingStables:int = GameHelper.getRemainingStables(player.farm);
            result = (remainingStables > 0);
            
            return result;
        }
    
    }
}